import os

cwd = str(Dir("#"))
dirs = os.listdir(cwd)

env = Environment(CXX='g++', CXXFLAGS=["-O2", "-Werror", "-pedantic", "-std=c++20"])
Export("env")

for d in dirs:
    path = os.path.join(cwd, d)
    if os.path.isfile(os.path.join(path, "SConscript")):
        SConscript(os.path.join(d, "SConscript"))
